<?php
/**
 *
 * @author Jean-Baptiste
 * @version 
 */

/**
 * LangTab helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Zend_View_Helper_MultiTitles extends Zend_View_Helper_Abstract
{
    private $_vi;  
    private $_en;  
    private $_ja;  
    private $_zh;  
    private $_fr;  
    
    public function multiTitles()
    {
        $this->_defaultValues();
        return $this;
    }
        
    private function _defaultValues() 
    {
    	$this->vi(null);    	
    	$this->en(null);    	
    	$this->ja(null);    	
    	$this->zh(null);    	
    	$this->fr(null);    	
    }
    
    public function vi($vi) 
    {
    	$this->vi = $vi;
    	return $this;
    }
       
    public function en($en) 
    {
    	$this->en = $en;
    	return $this;
    }
       
    public function ja($ja) 
    {
    	$this->ja = $ja;
    	return $this;
    }
       
    public function zh($zh) 
    {
    	$this->zh = $zh;
    	return $this;
    }
       
    public function fr($fr) 
    {
    	$this->fr = $fr;
    	return $this;
    }
       
    public function render() 
    {    	
         $html = '<a id="multi_expand_titles" class="multi_language_expand closed">&nbsp;</a>'."\n";
         $html .='<div id="titles" class="field-wrapper">'."\n";
         $html .='<div id="zone_title_vi" class="zone default">'.$this->vi.'</div>'."\n";
         $html .='<div id="zone_title_en" class="zone" style="display:none;">'.$this->en.'</div>'."\n";
         $html .='<div id="zone_title_ja" class="zone" style="display:none;">'.$this->ja.'</div>'."\n";
         $html .='<div id="zone_title_zh" class="zone" style="display:none;">'.$this->zh.'</div>'."\n";
         $html .='<div id="zone_title_fr" class="zone" style="display:none;">'.$this->fr.'</div>'."\n";
         $html .= '</div>'."\n";
        	
    	return $html;
    }
    
}
